Component({
  relations: {
    './cell-select-item': {
      type: 'child',
      linked(target) {
        this.update()
      },
      linkChanged(target) {},
      unlinked(target) {
      }
    }
  },
  properties: {
    type: {
      type: String,
      value: 'radio'
    }
  },
  data: {},
  methods: {
    update () {
      let children = this.getRelationNodes('./cell-select-item')
      children.forEach((item, index) => {
        item.data.index = index
      })
    }
  },
  ready () {
    this.update()
  },
  attached () {}
})
